<template>
  <div>index{{result.message}}</div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'Index',
  data () {
    return {
      result: {}
    }
  },
  methods: {
    getData () {
      axios.get('http://119.45.228.148:8080/movies').then(res => {
        this.result = res.data
      })
    }
  },
  mounted () {
    this.getData()
  }
}
</script>

<style scoped>

</style>
